<?php

class LabelList {

    protected $dbo = NULL;

    public function __construct() {

        $this->dbo  = &DBO::getInstance();
    }

    public function getAllLabels() {

        $res = $this->dbo->getAll("SELECT name
            FROM mtl.labels
            ORDER BY name ASC",
            NULL,
            DB_FETCHMODE_ASSOC);

        throwOnError($res);
        
        return $res;
    }

}